﻿using KAKA.Domain;
using KAKA.Repository;
using Morus;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace KAKA.Infrastructure
{
    public class TokenHelper
    {
        public static string GetEmailVerificationTokenUrl(string token)
        {
            var rootUrl = IoC.Resolve<ISettingRepository>().GetByName(Setting.NAME_ROOT_URL).Value;

            return rootUrl + "/Personal/ActivateEmail/{0}".FormatWith(token);
        }
    }
}